Skip to content

Reset stateful cache hooks after every ModularPipeline call - #15212

Merged
yiyixuxu merged 1 commit into
mainfrom
modular-reset-stateful-cache
Nov 9, 2026
Merged

yiyixuxu merged 1 commit into
mainfrom
modular-reset-stateful-cache

Conversation

@yiyixuxu

@yiyixuxu yiyixuxu commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Cache hooks keep state across a run. Standard pipelines clear it in
maybe_free_model_hooks; ModularPipeline had no equivalent, so Cosmos3
carried a __call__ override that new pipelines started copying. Move the
reset into the base __call__ and drop the override.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@github-actions github-actions Bot added modular-pipelines size/S PR with diff < 50 LOC labels Nov 9, 2026
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@yiyixuxu yiyixuxu mentioned this pull request Nov 9, 2026
10 tasks done
@yiyixuxu
yiyixuxu merged commit 8c54b38 into main Nov 9, 2026
16 of 17 checks passed
@yiyixuxu
yiyixuxu deleted the modular-reset-stateful-cache branch November 9, 2026 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

modular-pipelines size/S PR with diff < 50 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants